package com.project.web.system.service.app;

import com.project.web.system.model.app.Menu;
import com.project.web.system.service.common.BaseService;

import java.util.List;
public interface MenuService extends BaseService<Menu,Long> {

    /**
     * 查询树形菜单
     * @param id
     * @return
     */
    List<Menu> findChildrenNodes(Long id);

    /**
     *
     * @param userId
     * @return
     */
    public List<Menu> selectMenu(Long userId);

    /**
     * 查询按钮权限
     * @param userId
     * @return
     */
    public List<Menu> selectButtonMenu(Long userId);
}
